"""UI贴图文件"""

import pygame
from pygame.sprite import Sprite


class Spacecraft_Mapping(Sprite):
    """控制飞船贴图的一个类"""

    def __init__(self, screen):
        """初始化飞船贴图"""
        super().__init__()
        self.screen = screen
        self.screen_rect = screen.get_rect()

        # 加载飞船贴图图像，并获取其外接矩形
        self.image = pygame.image.load('images_source/spacecraft2.png')
        self.rect = self.image.get_rect()


class Bullet_Mapping(Sprite):
    """控制子弹贴图的一个类"""

    def __init__(self, screen):
        """初始化子弹贴图"""
        super().__init__()
        self.screen = screen
        self.screen_rect = screen.get_rect()

        # 加载武器贴图图像，并获取其外接矩形
        self.image = pygame.image.load('images_source/bullet_mapping.png')
        self.rect = self.image.get_rect()

